Skip to content

[OSPRH-25851] Ignore empty node sets during data plane OVN minor update#1786

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
abays:osprh_25851
Feb 4, 2026
Merged

[OSPRH-25851] Ignore empty node sets during data plane OVN minor update#1786
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
abays:osprh_25851

Conversation

@abays
Copy link
Contributor

@abays abays commented Jan 30, 2026

During a minor update, we currently mistakenly consider empty OpenStackDataPlaneNodeSets and wait for their non-existent OVN deployments to update. We should ignore them in this context instead, in order to prevent unnecessarily blocking the update and thus obviate the need for manual intervention to unblock it (which can be done by deleting the empty OpenStackDataPlaneNodeSets).

Tested locally in a CIFMW dev-scripts environment with a minor update of VA1:

  1. Added an empty OpenStackDataPlaneNodeSet after initial deployment
  2. Initiated minor update and reached data plane OVN update
  3. Observed successful completion of data plane OVN update

Jira: https://issues.redhat.com/browse/OSPRH-25851

@abays abays requested review from dprince and rabi January 30, 2026 11:02
@openshift-ci openshift-ci bot requested a review from slagle January 30, 2026 11:02
"ansibleSSHPrivateKeySecret": "dataplane-ansible-ssh-private-key-secret",
},
"nodes": map[string]interface{}{},
"servicesOverride": []string{},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this because the servicesOverride field doesn't actually exist in OpenStackDataPlaneNodeSet. It's found in OpenStackDataPlaneDeployment instead, so this line is misleading.

@stuggi
Copy link
Contributor

stuggi commented Feb 3, 2026

looks good to me, but would let someone with better edpm knowledge approve to land it.

Copy link
Contributor

@rabi rabi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I missed it. LGTM. Did you face the issue with some testing. In real-life we don't expect users to have empty nodesets 😄

// After considering generation (to make sure reconciliation has quiesced for
// the current nodeset spec), we only care about deployed status if the nodeset
// has nodes
if len(nodeset.Spec.Nodes) < 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think general pattern is to use == 0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, works for me.

@openshift-ci openshift-ci bot added the lgtm label Feb 3, 2026
@abays
Copy link
Contributor Author

abays commented Feb 3, 2026

Sorry I missed it. LGTM. Did you face the issue with some testing. In real-life we don't expect users to have empty nodesets 😄

A customer had run into this, which is what prompted the work. But yeah, the workaround is just to delete those empty OpenStackDataPlaneNodeSets, which is what they ended up doing.

@openshift-ci openshift-ci bot added the lgtm label Feb 3, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 3, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, rabi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@abays
Copy link
Contributor Author

abays commented Feb 3, 2026

@abays: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl 1e8a126 link true /test openstack-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.
Details

{  failed to wait for the created cluster claim to become ready: timed out waiting for the condition}

/test openstack-operator-build-deploy-kuttl

@abays
Copy link
Contributor Author

abays commented Feb 3, 2026

@abays: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl 1e8a126 link true /test openstack-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.
Details

{  failed to wait for the created cluster claim to become ready: timed out waiting for the condition}

/test openstack-operator-build-deploy-kuttl

@abays
Copy link
Contributor Author

abays commented Feb 3, 2026

@abays: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl 1e8a126 link true /test openstack-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.
Details

{  failed to wait for the created cluster claim to become ready: timed out waiting for the condition}

/test openstack-operator-build-deploy-kuttl

@abays
Copy link
Contributor Author

abays commented Feb 3, 2026

@abays: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl 1e8a126 link unknown /test openstack-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.
Details

No resources found in openstack-operators namespace.
make: *** [Makefile:782: openstack_wait] Error 124

Unrelated to PR.

/test openstack-operator-build-deploy-kuttl

@rabi
Copy link
Contributor

rabi commented Feb 4, 2026

/test openstack-operator-build-deploy-kuttl

@openshift-merge-bot openshift-merge-bot bot merged commit dd4c370 into openstack-k8s-operators:main Feb 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants